﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LeonardoNews.Server.PubNub
{
    public static class PubNubPublisher
    {
        private static readonly PubnubAPI pubnub = new PubnubAPI(
            "pub-c-9ef66e6d-18fc-4a42-8bba-ac0795ffb945",
            "sub-c-0c176c6a-04c2-11e3-a5e8-02ee2ddab7fe",
            "sec-c-NTdhNDY0NGQtZjdhYy00MmNkLTg4YzMtYzA1MzVmNDZhYzdi");

        public static void Publish(string message)
        {
            pubnub.Publish("leonardo-news", message);
        }
    }
}